home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
hobby
/
xmagic2.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-10-30
|
3KB
|
88 lines
echo off
cls
if not exist x_magic.exe goto error
if !==%1! goto auto
goto manual
:ERROR
cls
echo ----------------------------------------------------------------
echo - ERROR
echo -
echo - You must run INSTALL from the DOS prompt of the drive
echo - that contains the CrossMagic disk, (e.g. A: or B:)
echo -
echo - Please correct and try again.
echo ----------------------------------------------------------------
goto exit
:AUTO
echo .........................................................................
echo : :
echo : CrossMagic V2.03 :
echo : :
echo : This program requires 680K of free space on your hard disk. :
echo : :
echo : To install CrossMagic on C:\XMAGIC2 :
echo : press any key now. :
echo : :
echo : To install on a drive other than C: :
echo : 1. Press [CTRL] [C] and answer Y to "Terminate batch file?" :
echo : 2. Type INSTALL X then press [ENTER] :
echo : where: X is the letter of the desired drive :
echo : DO NOT add a colon (:) to the drive letter. :
echo : A \XMAGIC2 directory is created automatically. :
echo : :
echo : example: INSTALL E - installs onto E:\XMAGIC2 :
echo : :
echo :.......................................................................:
echo To install on C:\XMAGIC2,
pause
cls
echo Now installing CrossMagic on C:\XMAGIC2
md c:\xmagic2
x_magic C:\xmagic2\ -d
if errorlevel 1 goto space
cls
c:
cd \xmagic2
goto end
:MANUAL
goto ok
:SPACE
cls
echo --------------------------------------------------------------
echo - ERROR
echo -
echo - There is insufficient space on the specified drive (%1:)
echo -
echo - -or- You have specified an invalid drive parameter.
echo -
echo - If you see two colons here (%1:), please
echo - type INSTALL X without adding a colon.
echo -
echo - X is the letter of the desired drive
echo -
echo - Please correct and try again.
echo --------------------------------------------------------------
goto exit
:OK
echo Now installing CrossMagic on %1:\XMAGIC2
md %1:\xmagic2
x_magic %1:\xmagic2\ -d
if errorlevel 1 goto space
cls
%1:
cd \xmagic2
:END
echo Installation successful!
echo.
echo You may now type XMAGIC and press [ENTER] to run CrossMagic.
:EXIT